home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Morphos / GCC / lib / gcc-lib / ppc-amigaos / 2.95.1 / include / stdbool.h < prev    next >
C/C++ Source or Header  |  2000-03-13  |  502b  |  21 lines

  1. /* stdbool.h for GNU.  */
  2. #ifndef __STDBOOL_H__
  3. #define __STDBOOL_H__    1
  4.  
  5. /* The type `bool' must promote to `int' or `unsigned int'.  The constants
  6.    `true' and `false' must have the value 0 and 1 respectively.  */
  7. typedef enum
  8.   {
  9.     false = 0,
  10.     true = 1
  11.   } bool;
  12.  
  13. /* The names `true' and `false' must also be made available as macros.  */
  14. #define false    false
  15. #define true    true
  16.  
  17. /* Signal that all the definitions are present.  */
  18. #define __bool_true_false_are_defined    1
  19.  
  20. #endif    /* stdbool.h */
  21.